package com.jindy.module.order.timer;

import com.jindy.common.core.domain.AjaxResult;
import com.jindy.module.order.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yqq
 * @date 2023/6/9
 * @Description 订单定时器
 */
@RestController
@RequestMapping("/order/timer")
public class OrderTimer {

    @Autowired
    private IOrderService orderService;

    /**
     * 对账单预警通知业务员
     */
    @GetMapping("/statement/warning")
    public AjaxResult statementWarningTimer(){
        return orderService.statementWarningTimer();
    }

}
